import Layout from "../layout/index.vue";

export const routes = [
  {
    path: "/",
    redirect: "/machineLeaning",
  },
  {
    path: "/machineLeaning",
    component: Layout,
    redirect: "/machineLeaning/datasets",
    meta: {
      title: "机器学习",
    },
    children: [
      {
        path: "datasets",
        component: () => import("../pages/machineLearning/datasets/Datasets.vue"),
        meta: {
          title: "数据集",
        },
      },
      {
        path: "training",
        component: () => import("../pages/machineLearning/training/Training.vue"),
        meta: {
          title: "训练",
        },
      },
      {
        path: "prediction",
        component: () => import("../pages/machineLearning/prediction/Prediction.vue"),
        meta: {
          title: "预测",
        },
      },
    ],
  },
  {
    path: "/other",
    component: Layout,
    meta: {
      title: "其它",
    },
  },
];
